import React, { Component } from 'react'
import Product from '../../components/Products'
import {connect} from 'dva'

//页面跳转组建
class index extends Component {
    render() {

        console.log(this.props.productList)

        const { productList, dispatch } = this.props

        return (
            <div>
                <Product title='护舒宝' dispatch={dispatch} productList={productList}/>
            </div>
        )
    }
}

const mapStateToProps = (state) =>{
    return {
        productList:state.product.productList
    }
}

export default connect(mapStateToProps)(index)